package com.pucong.gitee.database.backup.common.selfenum;


import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;


/**
 * @author pucong
 */
@ApiModel("redis 操作类型枚举类")
public enum RedisLogTypeEnum implements CommonEnum<Integer> {

    添加(0),
    修改(1),
    删除(2),
    查询(3),
    备份(4),
    恢复(5),
    创建连接(6),
    删除连接(7);

    @ApiModelProperty(value = "key",example = "0")
    private Integer key;

    RedisLogTypeEnum(Integer key) {
        this.key = key;
    }

    /**
     * 字典code
     * @return
     */
    @Override
    public Integer getValue() {
        return this.key;
    }

    /**
     * 字典名称
     * @return
     */
    @Override
    public String getName() {
        return this.name();
    }
}
